/*
 * @Author: NaturalHulk 2066634567@qq.com
 * @Date: 2024-10-08 11:30:40
 * @LastEditors: NaturalHulk 2066634567@qq.com
 * @LastEditTime: 2024-10-08 11:31:09
 * @FilePath: /xhs-mom-new/src/api/material/unitattribute.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

/**
 * 列表
 * @returns
 */
export function GetListAPI(query) {
    return request({
        url: '/system/auxiliaryData/list',
        method: 'GET',
        params: query
    })
}

/**
 * 新增
 * @returns
 */
export function AddDataAPI(data) {
    return request({
        url: '/system/auxiliaryData/add',
        method: 'POST',
        data
    })
}

/**
 * 修改
 * @returns
 */
export function EditDataAPI(data) {
    return request({
        url: '/system/auxiliaryData/edit',
        method: 'PUT',
        data
    })
}

/**
 * 查询单条
 * @returns
 */
export function GetViewAPI(data) {
    return request({
        url: '/system/auxiliaryData/' + data,
        method: 'GET'
    })
}

/**
 * 删除
 * @returns
 */
export function DelDataAPI(data) {
    return request({
        url: '/system/auxiliaryData/deleteSingle/' + data,
        method: 'DELETE'
    })
}